# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libfontenc
pkgver=1.1.8
pkgrel=0
pkgdesc="X11 font encoding library"
url="https://xorg.freedesktop.org/"
arch="all"
license="MIT"
options="!check"  # No test suite.
makedepends="util-macros xorgproto zlib-dev"
subpackages="$pkgname-dev"
source="https://www.x.org/releases/individual/lib/libfontenc-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-static \
		--with-encodingsdir=/usr/share/fonts/encodings
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
c9ddea9c0c6c6f4933b5b8ed2044e3dc259a9edbb3070a32f0335a6ad4d47b1858cefc01fa2dff9f29808bee311e9c677b05861200d2f2c4552c92b33fe027e2  libfontenc-1.1.8.tar.xz
"
